<?php


class SiteController extends CController {
    
    public function actionIndex() {
        $connection=Yii::app()->db;
        $sql = "SELECT * FROM `tbl_temp`";
        $command=$connection->createCommand($sql);
        $rows=$command->queryAll();
        print_r($rows);
        $this->render('default');
    }

}